//
//  USStickerPickerView.h
//  us
//
//  Created by lhx on 2025/4/15.
//

#import <UIKit/UIKit.h>
#import "USStickerModel.h"
NS_ASSUME_NONNULL_BEGIN

@class USStickerPickerView;

@protocol USStickerPickerViewDelegate <NSObject>

@optional

- (void)stickerPickerView:(USStickerPickerView *)picker didSelectSticker:(USStickerModel *)sticker;

- (void)stickerPickerViewDidSelectEmpty;

- (void)stickerPickerViewClose;

@end

@interface USStickerPickerView : UIView

@property (nonatomic, weak) id<USStickerPickerViewDelegate> delegate;

///初始化
- (instancetype)initWithStickerShowCloseButton:(BOOL)showDelete;

- (instancetype)initWithStickerShowCloseButton:(BOOL)showDelete andShowEmpty:(BOOL)showEmpty;

///刷新数据
- (void)reloadWithStickerGroups:(NSArray<USStickerModel *> *)groups;

///显示贴纸
- (void)showStickerPicker;
// 允许自动消失
- (void)showStickerPickerWithAllowTapDismiss:(BOOL)allowDismiss;

@end
NS_ASSUME_NONNULL_END
